package com.bokee.archerwq.lab.xstream;

import java.util.ArrayList;
import java.util.List;

import com.thoughtworks.xstream.annotations.XStreamAlias;

@SuppressWarnings("unused")
@XStreamAlias("blog")
public class Blog {
	@XStreamAlias("author")
	private String writer;
	private List<Entry> entries = new ArrayList<Entry>();

	public Blog(String writer) {
		this.writer = writer;
	}

	public void add(Entry entry) {
		entries.add(entry);
	}

	public List<Entry> getContent() {
		return entries;
	}
}
